package com.breakfast.fun;

import com.breakfast.fun.data.entity.home.CityData;
import com.breakfast.fun.data.entity.user.UserData;

/**
 * 存放常量
 * Created by hp on 2016/8/13.
 */
public class Constant {

    public static final String appSecret = "86c42d9dc49e31ded1936a71854c0fdfb67b8505";
    //base
    public static final int PAGE_COUNT = 10;

    // intent
    public static final String HEAD_DATA = "data";
    public static final String COUNT = "count";
    public static final String VH_CLASS = "vh";
    // RxBusEventName

    public static final String EVENT_LOGIN = "login";
    public static final String EVENT_DEL_ITEM = "delete_item";
    public static final String EVENT_UPDATE_ITEM = "update_item";
    public static final String EVENT_HEADDATA = "get_headdata";
    public static final String EVENT_COUNT = "get_count";

    // TagName
    public static final String TAG_EDITABLE = "editable";
    public static final String TAG_HEADDATA = "with_headdata";

    /**
     * 客服电话
     */
    public final static String SERVICE_TEL = "400-6059-144";

    /**
     *
     */
    public final static String WX_ID = "wxc3c117a5bde7ef42";

    /**
     * WebView加载需要
     */
    public final static String html1 = "<!DOCTYPE html><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title></title><meta name=\"viewport\" content=\"width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;\" /><meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />"
            + "<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\" /><meta name=\"format-detection\" content=\"telephone=no\" />"
            + "<link href=\"style/css/style.css\" type=\"text/css\" rel=\"stylesheet\" /><script src=\"style/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script><script src=\"style/js/iscroll.js\" type=\"text/javascript\"></script><script src=\"style/js/inner.js\" type=\"text/javascript\"></script><script src=\"style/js/common.js\" type=\"text/javascript\"></script></head>"
            + "<body><div class=\"comBg pd10 atxt01\">";
    public final static String html2 = "</div></body></html>";

    //--------------------------------------------------------

    private static CityData cityData = null;
    private static UserData userData = null;
    private static String userSign = null;

    public static CityData getCityData() {
        return cityData;
    }

    public static void setCityData(CityData cityData) {
        Constant.cityData = cityData;
    }

    public static UserData getUserData() {
        return userData;
    }

    public static void setUserData(UserData userData) {
        Constant.userData = userData;
    }

    public static String getUserSign() {
        return userSign;
    }

    public static void setUserSign(String userSign) {
        Constant.userSign = userSign;
    }
}
